<?php e($javascript->link('ckeditor/ckeditor')); ?>
<div class="companies form">
<?php e($form->create('Company')); ?>
    <fieldset>
        <legend><?php __('Edit Company');?></legend>
        <!-- Company Edit Form Widfat -->
        <div class="widfats">
            <?php e($form->hidden('id')); ?>
            <?php e($form->input('name', array('class'=>'input text large'))); ?>
            <?php e($form->input('website', array('class'=>'input text large'))); ?>
            <?php e($form->input('email', array('class'=>'input text large'))); ?>
            <?php e($form->input('introduction', array('label'=>__('Company Introduction', true), 'type'=>'textarea', 'class'=>'textarea'))); ?>
        </div>
        <!-- Company Edit sidebar -->
        <div class="sidebar">
            <!-- Save Company button -->
            <div class="widget">
                <div class="toggle">&nbsp;</div>
                <h3 class="handle"><span><?php __('Edit Company');?></span></h3>
                <div class="content">
                    <?php e($form->submit(__('Save Changes', true), array('class'=>'submit'))); ?>
                </div>
            </div>
            <!-- Company Category Info -->
            <div class="widget">
                <div class="toggle">&nbsp;</div>
                <h3 class="handle"><span><?php __('Company Categories');?></span></h3>
                <div class="content">
                    <?php e($form->input('company_location_id', array('class'=>'select', 'empty' => __('-Company Location-', true)))); ?><br class="clear"/>
                    <?php e($form->input('company_industry_id', array('class'=>'select', 'empty' => __('-Company Industry-', true)))); ?><br class="clear"/>
                    <?php e($form->input('company_type_id', array('class'=>'select', 'empty' => __('-Company Type-', true)))); ?><br class="clear"/>
                </div>
            </div>
            <!-- Quick Actions -->
            <div class="widget">
                <div class="toggle">&nbsp;</div>
                <h3 class="handle"><span><?php __('Quick Actions');?></span></h3>
                <div class="content">
                    <div class="actions">
                        <ul>
                            <li><?php e($html->link(__('List Companies', true), array('action' => 'index')));?></li><br class="clear"/>
                            <li><?php e($html->link(__('List Company Locations', true), array('controller' => 'company_locations', 'action' => 'index'))); ?> </li>
                            <li><?php e($html->link(__('New Company Location', true), array('controller' => 'company_locations', 'action' => 'add'))); ?> </li>
                            <li><?php e($html->link(__('List Company Industries', true), array('controller' => 'company_industries', 'action' => 'index'))); ?> </li>
                            <li><?php e($html->link(__('New Company Industry', true), array('controller' => 'company_industries', 'action' => 'add'))); ?> </li>
                            <li><?php e($html->link(__('List Company Types', true), array('controller' => 'company_types', 'action' => 'index'))); ?> </li>
                            <li><?php e($html->link(__('New Company Type', true), array('controller' => 'company_types', 'action' => 'add'))); ?> </li>
                            <li><?php e($html->link(__('List Jobs', true), array('controller' => 'jobs', 'action' => 'index'))); ?> </li>
                            <li><?php e($html->link(__('New Job', true), array('controller' => 'jobs', 'action' => 'add'))); ?> </li>
                            <br class="clear"/>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </fieldset>
<?php e($form->end()); ?>
</div>
<script type='text/javascript'>
jQuery(function(){
    // Create an CKEditor
    $.sme.cbk.initCKEditor('CompanyIntroduction');
    // Justify Company category information labels
    $('label[for^=CompanyCompany]').addClass('checkbox');
});
</script>
